package com.wudizaba.microservicesdemosystem.controller;


import com.wudizaba.microservicesdemosystem.service.IExcelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 导出excel 前端控制器
 * </p>
 *
 * @author wudizaba
 * @since 2024-06-14
 */
@RestController
@RequestMapping("/excel/produce")
@Api(tags = "excel接口")
public class ExcelProduceController {

    @Autowired
    private IExcelService excelService;

    @ApiOperation("excel导出")
    @PutMapping("/export")
    public void exportProduceExcel(HttpServletResponse response) {
        excelService.exportProduceExcel(response);
    }

}
